/*
 * wk_types.h
 *
 *  Created on: 2012-2-25
 *      Author: tianmax
 */

#ifndef __WK_TYPES_H__
#define __WK_TYPES_H__

#define K 1024

/**
 * 类型定义
 */
typedef int index_t;

/*bool类型模仿*/
/*
#define true 1
#define TRUE 1
#define false 0
#define FALSE 0
*/
enum boolean{
	true=1,
	TRUE=1,
	false=0,
	FALSE=0,
};
typedef enum boolean bool;
typedef enum boolean boolean;
typedef enum boolean Bool;
typedef enum boolean Boolean;
typedef enum boolean BOOL;

#ifndef __UBOOLEAN_TYPE__
#define __UBOOLEAN_TYPE__
	typedef enum boolean BOOLEAN;
#endif


typedef unsigned int wsize_t;
typedef long int wlong_t;

/*数据结构体*/
typedef struct wdata{
	//数据地址
	void* start;
	//数据长度
	wlong_t length;

}WData;

#endif /* WK_TYPES_H_ */
